aux_source_directory(. dir_source)

#add_definitions()
include_directories(../include)
include_directories(../include/Pal)
include_directories(../include/sys)
#include_directories(../Include/ias)
include_directories(../include/log)
include_directories(../include/cfg)
include_directories(../include/pin)
include_directories(../include/adc)
include_directories(../include/faac)
include_directories(../include/faad)
if (${CROSS_PLATFORM} STREQUAL RV1126)
	include_directories(../include/rv1126/rkmedia)
	include_directories(../include/rv1126/rga)
	include_directories(../include/rv1126/rockx)
endif ()
include_directories(../include/Algo)

# link_directories 要放在add_executable前面，否则无效。
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
message(STATUS "LIBRARY_OUTPUT_PATH : ${LIBRARY_OUTPUT_PATH}")

#exec_program(svn ARGS "info ${PROJECT_SOURCE_DIR} | grep Revision: | awk '{print $2}'" OUTPUT_VARIABLE SVN_NUM)
set(SVN_NUM "123")
message(STATUS "SVN_NUM : ${SVN_NUM}")

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLOG_MODULE_NAME='\"libAudio\"' -DSVN_NUM=${SVN_NUM}")
message(STATUS "CFLAGS : ${CMAKE_C_FLAGS}")

add_library(Audio STATIC ${dir_source})
